package com.wutong.authority_server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wutong.authority_server.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    //通过用户iD获取角色名称
    List<Role> getRolesByUserId(Integer userId);
}
